<?php


namespace app\logindev\controller;


class Index
{
    public function index(){
        return 'login';
    }

    public function wx(){
        //数据校验
        $session_key = 'HyVFkGl5F5OQWJZZaNzBBg==';
        $rawData = '{"nickName":"Band","gender":1,"language":"zh_CN","city":"Guangzhou","province":"Guangdong","country":"CN","avatarUrl":"http://wx.qlogo.cn/mmopen/vi_32/1vZvI39NWFQ9XM4LtQpFrQJ1xlgZxx3w7bQxKARol6503Iuswjjn6nIGBiaycAjAtpujxyzYsrztuuICqIM5ibXQ/0"}';
//        dump($rawData);
        $sa = sha1($rawData.$session_key);

        return $sa;
    }
}